﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Forum/Views/Shared/Forum1.Master" Inherits="System.Web.Mvc.ViewPage<SacNetUG.Areas.Forum.Models.Post>" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h4>Add a post to a subject</h4>
    <hr />

<table class="tableofsubjectandpost">
    <tr>
        <td style="width:75px; text-align:left; vertical-align:top;">&nbsp;</td>
        <td style="width:95px; text-align:right; vertical-align:top;">&nbsp;</td>
        <td style="width:60px; text-align:right;">&nbsp;</td>
        <td style="width:82%; text-align:left; vertical-align:top; padding-left:15px; color:Red; font-size:1.0em; font-weight:bold;"><%: ViewData["selectedsubject"]%></td>
    </tr>
    <tr>
        <td style="width:75px; text-align:left; vertical-align:top;">&nbsp;<%: ViewData["postorhandle"]%></td>
        <td style="width:95px; text-align:right; vertical-align:top;"><%: ViewData["dateofpost"]%></td>
        <td style="width:60px; text-align:right;">&nbsp;</td>
        <td style="width:82%; text-align:left; vertical-align:top; padding-left:15px"><%: ViewData["thepost"]%></td>
    </tr>
</table>
    
    <% Html.EnableClientValidation(); %>
    <% using (Html.BeginForm()) {%>
        <%: Html.ValidationSummary(true) %>

             <div>
                Enter below your post to the subject under discussion
            </div>

            <div class="editor-field">
                <%: Html.TextAreaFor(model => model.ThePost, new { cols = 100, rows = 7 })%>
                <%: Html.ValidationMessageFor(model => model.ThePost) %>
            </div>
            <br />
            <div>
                Enter below your login 'Handle'
            </div>
            <div class="editor-field">
                <%: Html.TextBoxFor(model => model.PostorHandle) %>
                <%: Html.ValidationMessageFor(model => model.PostorHandle) %>
            </div>
           <p>
                <input type="submit" class="submitsubject" id="submit" name="submit" value="Submit" size=50 />
            </p>

    <% } %>

</asp:Content>
